<%@ page language="java" contentType="text/html; charset=UTF-8"
	isELIgnored="false" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>
<%@ taglib uri="/mytag" prefix="yjd"%>
<script	src="${requestScope.FPWEB.staticRootPath }/Js/Plugins/Echarts/echarts.min.js"></script>
<script	src="${requestScope.FPWEB.staticRootPath }/Js/Plugins/Echarts/china.js"></script>

<div class="wrap">
	<%@include  file="/WEB-INF/jsp/area/register.jsp"%>
	<%@include  file="/WEB-INF/jsp/area/recharge.jsp"%>
	<%@include  file="/WEB-INF/jsp/area/invest.jsp"%>
	
	<%-- <div class="h_a1" style="clear: both;">
	<span class="title">登录留存率-地域</span>
	<div class="yjd-tip">
		<div style="width:500px;">
        1、登录留存率：某段时间内的新增登录用户，经过一段时间后，仍继续登录的被认作是登录留存用户；该部分用户占当时新增用户的比例即是登录留存率。<br>
		</div>
	</div>
   </div>
	<div class="count cc" style="padding: 0;">
		<form
			action="${requestScope.FPWEB.rootPath }/userKeep/loginRateByArea${requestScope.FPWEB.urlStuff}"
			id="loginRateForm">
			<div class="c-box-head" style="text-align: right;">
				<label>地域：</label> <select name="area" class="mr10" id="loginArea">
					<c:forEach items="${cityList}" var="city">
					  <option value="${city.id }">${city.name}</option>
					</c:forEach>
				</select>
				<label>登录留存率:</label> <select name="skip" id="loginSkip">
					<option value="7" selected="selected">过去7天</option>
					<option value="30">过去30天</option>
					<option value="13">过去13周</option>
					<option value="12">过去12个月</option>
				</select>
			</div>
		</form>
		<div class="c-box-con" id="loginRateContiner" style="padding: 0;"></div>
	</div>
	
	<div class="h_a1" style="clear: both;">
	<span class="title">投资留存率-地域</span>
	<div class="yjd-tip">
		<div style="width:500px;">
        1、投资留存率：某段时间内的新增投资用户，经过一段时间后，仍继续投资的被认作是投资留存用户；该部分用户占当时新增用户的比例即是投资留存率。<br>
		</div>
	</div>
   </div>
	<div class="count cc" style="padding: 0;">
		<form
			action="${requestScope.FPWEB.rootPath }/userKeep/investRateByArea${requestScope.FPWEB.urlStuff}"
			id="investRateForm">
			<div class="c-box-head" style="text-align: right;">
			<label>地域：</label> <select name="area" class="mr10" id="investArea">
					<c:forEach items="${cityList}" var="city">
					  <option value="${city.id }">${city.name}</option>
					</c:forEach>
				</select>
			<label>投资留存率:</label> <select name="skip" id="investSkip">
					<option value="7" selected="selected">过去7天</option>
					<option value="30">过去30天</option>
					<option value="13">过去13周</option>
					<option value="12">过去12个月</option>
				</select>
			</div>
		</form>
		<div class="c-box-con" id="investRateContiner" style="padding: 0;"></div> --%>
	</div>
	<script>
		YJD.use('AppAdminCommon');
		YJD.use('AppBIMap');
		
		/* function loginRateLoad() {
			var loginRateForm = $("#loginRateForm");
			$.ajax({
				type : "post",
				url : loginRateForm.attr("action"),
				dataType : "html",
				data : loginRateForm.serializeArray(),
				error : function(request) {
					alert("连接失败！");
				},
				success : function(result) {
					$("#loginRateContiner").html(result);
				}
			});
		}
		
		function investRateLoad() {
			var loginRateForm = $("#investRateForm");
			$.ajax({
				type : "post",
				url : loginRateForm.attr("action"),
				dataType : "html",
				data : loginRateForm.serializeArray(),
				error : function(request) {
					alert("连接失败！");
				},
				success : function(result) {
					$("#investRateContiner").html(result);
				}
			});
		}
		

		$(function() {
			loginRateLoad();
			investRateLoad();
			$("#loginSkip").change(function() {
				loginRateLoad();
			});
			$("#investSkip").change(function() {
				investRateLoad();
			});
			$("#loginArea").change(function() {
				loginRateLoad();
			});
			$("#investArea").change(function() {
				investRateLoad();
			});
		}); */
	</script>
</div>